import param from './param';
import serializeArray from './serializeArray';

/**
 * 以字符串形式获取表单数据
 * @param {Selector | Element} form
 * @returns {String}
 */
export default function serialize(form) {
    return param(serializeArray(form));
}